#include <bits/stdc++.h>
#include <stdlib.h>
using namespace std;

typedef long long LL;
typedef vector<int> vi;

char tmp[200];

char base[200] = "./data/", ext[20] = ".txt";

const int MAX_INT = 1000000000, MAXN = 100000;
const LL MAX_LL = 1000000000000000000LL;

void loadFileName(int id) {
    strcpy(tmp, base);
    int len = strlen(base);
    
    snprintf(tmp+len, sizeof(tmp), "%d", id);

    len = strlen(tmp);

    strcpy(tmp+len, ext);

    cerr << string(tmp) << endl;
}

mt19937 mt;

mt19937_64 bmt;

default_random_engine engine;
int randInt(int minv, int maxv) {
    uniform_int_distribution<int> uni(minv, maxv);
    return uni(engine);
}

LL randLL(LL minv, LL maxv) {
    uniform_int_distribution<LL> uni(minv, maxv);
    return uni(engine);
}

void doit(int n, int minv, int maxv) {
    printf("%d\n", n);
    for (int i=1; i<n; ++i) {
        printf("%d ", randInt(minv, maxv));
    }
    printf("%d\n", randInt(minv, maxv));
}

namespace Graph {
vi mp, u, v;
void createTree(int n) {
    mp.clear();
    u.clear();
    v.clear();
    mp = vi(n+1);
    for (int i=1; i<=n; ++i)
        mp[i] = i;
    random_shuffle(mp.begin()+1, mp.end());

    for (int i=2; i<=n; ++i) {
        u.push_back(i);
        v.push_back(randInt(1, i-1));
    }
    for (int &i:u)
        i = mp[i];
    for (int &i:v)
        i = mp[i];
    for (int i=0; i<n-1; ++i)
        printf("%d %d %d\n", u[i], v[i], randInt(0, 1));
}
}



int main() {

    mt = mt19937(time(0));
    bmt = mt19937_64(time(0));
<<<<<<< HEAD
    int st;
    puts("Input the start number of testcase:");
    scanf("%d", &st);
    int n;
    puts("Input the number of testcase:");
    scanf("%d", &n);
    for (int i=st; i<=st+n-1; ++i) {
        loadFileName(i);
        freopen(tmp, "w", stdout);
        // ==========================
        printf("%d\n", randInt(50000, 100000));
        
=======
    cerr << "Polygon generator Version 1.0.0" << endl;
    for (int i=1; i<=50; ++i) {
        loadFileName(i);
        freopen(tmp, "w", stdout);
        // ===========================

        int n;
        if (i <= 10) n = i;
        else if (i <= 20) {
            n = randInt(100, 1000000);
        } else if (i <= 40) {
            n = randInt(1000000, 100000000);
        } else n = randInt(100000000, 1000000000);

        // ============================

        printf("%d\n", n);

        // ============================
>>>>>>> 2dc5df1d8cac87f79b9606ad3ace03e31dca34ea
    }

    return 0;
}